package com.ecoolex.chinadutyfree.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class DirectMailGoodsOrderIdentityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public DirectMailGoodsOrderIdentityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DirectMailGoodsOrderIdentityExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public DirectMailGoodsOrderIdentityExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        DirectMailGoodsOrderIdentityExample example = new DirectMailGoodsOrderIdentityExample();
        return example.createCriteria();
    }

    public DirectMailGoodsOrderIdentityExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public DirectMailGoodsOrderIdentityExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public DirectMailGoodsOrderIdentityExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public DirectMailGoodsOrderIdentityExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public DirectMailGoodsOrderIdentityExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("directmailgoodsorderidentity.OrderId is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("directmailgoodsorderidentity.OrderId is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Integer value) {
            addCriterion("directmailgoodsorderidentity.OrderId =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.OrderId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Integer value) {
            addCriterion("directmailgoodsorderidentity.OrderId <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.OrderId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Integer value) {
            addCriterion("directmailgoodsorderidentity.OrderId >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.OrderId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsorderidentity.OrderId >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.OrderId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Integer value) {
            addCriterion("directmailgoodsorderidentity.OrderId <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.OrderId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Integer value) {
            addCriterion("directmailgoodsorderidentity.OrderId <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.OrderId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Integer> values) {
            addCriterion("directmailgoodsorderidentity.OrderId in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Integer> values) {
            addCriterion("directmailgoodsorderidentity.OrderId not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsorderidentity.OrderId between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("directmailgoodsorderidentity.OrderId not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("directmailgoodsorderidentity.`Name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("directmailgoodsorderidentity.`Name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.`Name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`Name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.`Name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`Name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("directmailgoodsorderidentity.`Name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`Name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.`Name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`Name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("directmailgoodsorderidentity.`Name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`Name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.`Name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`Name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("directmailgoodsorderidentity.`Name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("directmailgoodsorderidentity.`Name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.`Name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.`Name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.`Name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.`Name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andIdentityNoIsNull() {
            addCriterion("directmailgoodsorderidentity.IdentityNo is null");
            return (Criteria) this;
        }

        public Criteria andIdentityNoIsNotNull() {
            addCriterion("directmailgoodsorderidentity.IdentityNo is not null");
            return (Criteria) this;
        }

        public Criteria andIdentityNoEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.IdentityNo =", value, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.IdentityNo = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdentityNoNotEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.IdentityNo <>", value, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.IdentityNo <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdentityNoGreaterThan(String value) {
            addCriterion("directmailgoodsorderidentity.IdentityNo >", value, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.IdentityNo > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdentityNoGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.IdentityNo >=", value, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.IdentityNo >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdentityNoLessThan(String value) {
            addCriterion("directmailgoodsorderidentity.IdentityNo <", value, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.IdentityNo < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdentityNoLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.IdentityNo <=", value, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.IdentityNo <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andIdentityNoLike(String value) {
            addCriterion("directmailgoodsorderidentity.IdentityNo like", value, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoNotLike(String value) {
            addCriterion("directmailgoodsorderidentity.IdentityNo not like", value, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.IdentityNo in", values, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoNotIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.IdentityNo not in", values, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.IdentityNo between", value1, value2, "identityNo");
            return (Criteria) this;
        }

        public Criteria andIdentityNoNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.IdentityNo not between", value1, value2, "identityNo");
            return (Criteria) this;
        }

        public Criteria andFrontImageIsNull() {
            addCriterion("directmailgoodsorderidentity.FrontImage is null");
            return (Criteria) this;
        }

        public Criteria andFrontImageIsNotNull() {
            addCriterion("directmailgoodsorderidentity.FrontImage is not null");
            return (Criteria) this;
        }

        public Criteria andFrontImageEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.FrontImage =", value, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.FrontImage = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFrontImageNotEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.FrontImage <>", value, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.FrontImage <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFrontImageGreaterThan(String value) {
            addCriterion("directmailgoodsorderidentity.FrontImage >", value, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.FrontImage > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFrontImageGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.FrontImage >=", value, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.FrontImage >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFrontImageLessThan(String value) {
            addCriterion("directmailgoodsorderidentity.FrontImage <", value, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.FrontImage < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFrontImageLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.FrontImage <=", value, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.FrontImage <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andFrontImageLike(String value) {
            addCriterion("directmailgoodsorderidentity.FrontImage like", value, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageNotLike(String value) {
            addCriterion("directmailgoodsorderidentity.FrontImage not like", value, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.FrontImage in", values, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageNotIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.FrontImage not in", values, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.FrontImage between", value1, value2, "frontImage");
            return (Criteria) this;
        }

        public Criteria andFrontImageNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.FrontImage not between", value1, value2, "frontImage");
            return (Criteria) this;
        }

        public Criteria andBackImageIsNull() {
            addCriterion("directmailgoodsorderidentity.BackImage is null");
            return (Criteria) this;
        }

        public Criteria andBackImageIsNotNull() {
            addCriterion("directmailgoodsorderidentity.BackImage is not null");
            return (Criteria) this;
        }

        public Criteria andBackImageEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.BackImage =", value, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.BackImage = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBackImageNotEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.BackImage <>", value, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.BackImage <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBackImageGreaterThan(String value) {
            addCriterion("directmailgoodsorderidentity.BackImage >", value, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.BackImage > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBackImageGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.BackImage >=", value, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.BackImage >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBackImageLessThan(String value) {
            addCriterion("directmailgoodsorderidentity.BackImage <", value, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.BackImage < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBackImageLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.BackImage <=", value, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.BackImage <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBackImageLike(String value) {
            addCriterion("directmailgoodsorderidentity.BackImage like", value, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageNotLike(String value) {
            addCriterion("directmailgoodsorderidentity.BackImage not like", value, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.BackImage in", values, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageNotIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.BackImage not in", values, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.BackImage between", value1, value2, "backImage");
            return (Criteria) this;
        }

        public Criteria andBackImageNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.BackImage not between", value1, value2, "backImage");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("directmailgoodsorderidentity.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("directmailgoodsorderidentity.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("directmailgoodsorderidentity.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("directmailgoodsorderidentity.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("directmailgoodsorderidentity.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("directmailgoodsorderidentity.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("directmailgoodsorderidentity.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("directmailgoodsorderidentity.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("directmailgoodsorderidentity.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("directmailgoodsorderidentity.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("directmailgoodsorderidentity.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("directmailgoodsorderidentity.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("directmailgoodsorderidentity.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("directmailgoodsorderidentity.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("directmailgoodsorderidentity.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("directmailgoodsorderidentity.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("directmailgoodsorderidentity.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("directmailgoodsorderidentity.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("directmailgoodsorderidentity.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsorderidentity.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("directmailgoodsorderidentity.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsorderidentity.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("directmailgoodsorderidentity.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("directmailgoodsorderidentity.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsorderidentity.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsorderidentity.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("directmailgoodsorderidentity.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("directmailgoodsorderidentity.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("directmailgoodsorderidentity.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("directmailgoodsorderidentity.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("directmailgoodsorderidentity.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("directmailgoodsorderidentity.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("directmailgoodsorderidentity.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("directmailgoodsorderidentity.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("directmailgoodsorderidentity.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("directmailgoodsorderidentity.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("directmailgoodsorderidentity.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("directmailgoodsorderidentity.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("directmailgoodsorderidentity.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("directmailgoodsorderidentity.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsorderidentity.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("directmailgoodsorderidentity.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("directmailgoodsorderidentity.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(DirectMailGoodsOrderIdentity.Column column) {
            addCriterion(new StringBuilder("directmailgoodsorderidentity.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("directmailgoodsorderidentity.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("directmailgoodsorderidentity.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsorderidentity.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("directmailgoodsorderidentity.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private DirectMailGoodsOrderIdentityExample example;

        protected Criteria(DirectMailGoodsOrderIdentityExample example) {
            super();
            this.example = example;
        }

        public DirectMailGoodsOrderIdentityExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(DirectMailGoodsOrderIdentity.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(DirectMailGoodsOrderIdentity.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderIdentityExample example);
    }
}